<html>
	<head>
		<script type="text/javascript" src="test3.js"></script>
		<script language="JavaScript">
			function testInherit() {
				var a1 = new A1();
				appendText(a1.getMessage1());
				appendText(a1.getMessage2());
				appendText(a1.getMessage3());
				
				var a2 = new A2();
				appendText(a2.getMessage1());
				appendText(a2.getMessage2());
				appendText(a2.getMessage3());
			}
			function appendText(text) {
				var o = document.getElementById("content");
				o.value += text + "\n";
			}
		</script>
	</head>
	
	<body>
		<p>Inherit</p>
		<input type="button" value="Test Inherit " onclick="testInherit()" />		
		<br/>
		<textarea id="content" cols="100" rows="10"></textarea>
	</body>
</html>
